<template>
  <config-provider :locale="zhCN">
    <router-view v-slot="{ Component }">
      <component :is="Component"/>
    </router-view>
  </config-provider>
</template>

<script lang="ts">
import {defineComponent, ref} from 'vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import {ConfigProvider, message} from 'ant-design-vue'

export default defineComponent({
  name: 'App',
  components: {ConfigProvider},
  setup() {

    message.config({
      top: `50px`,
    })

    return {
      zhCN
    }
  }
})
</script>

<style lang="scss" scoped>
@import "~@/styles/global.scss";
@import "~@/styles/common.scss";
@import "~@/styles/override.scss";

body {
  min-height: 100vh;
  background-color: #f0f2f5!important;
}
</style>
